<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %> 
<%
    pageContext.setAttribute("root",request.getContextPath());
%>
<!DOCTYPE html>
<script>
var ctx_root="<%=request.getContextPath()%>";
</script>